<div class="food_lead">
	<div class="bootstrapiso shit">
		<ul class="nav nav-tabs" style="border-bottom-style: none">
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#unreceived">未被接单</a>
			</li>
			<li class="nav-item" >
				<a class="nav-link" data-toggle="tab" href="#sending">配送中</a>
			</li>
			<li class="nav-item">
				<a class="nav-link" data-toggle="tab" href="#sent">已送达</a>
			</li>
		</ul>
		<div class="tab-content">
			<div class="tab-pane fade" id="unreceived">
			<ul class="nav nav-pills">
				{if $unreceived_orders != NULL}
					{foreach $unreceived_orders as $details}
						<li class="nav-item">
							<ul>
							<li>下单时间: {$details->comfirm_time}</li>
							<li>商家名: {$details->src_name}</li>
							<li>商家地址: {$details->src_addr}</li>
							<li>商家电话: {$details->src_phone}</li>
							<li>送达地址: {$details->dst_addr}</li>
							<li>收货人姓名: {$details->dst_name}</li>
							<li>收货人电话: {$details->dst_phone}</li>
							</ul>
						</li>
					{/foreach}
				{else}
					无未被骑手接单订单
				{/if}
			</ul>
		</div>
			<div class="tab-pane fade" id="sending">
				<ul class="nav nav-pills">
					{if $sending_orders != NULL}
						{foreach $sending_orders as $details}
							<li class="nav-item">
								<ul>
									<li>下单时间: {$details->comfirm_time}</li>
									<li>商家名: {$details->src_name}</li>
									<li>商家地址: {$details->src_addr}</li>
									<li>商家电话: {$details->src_phone}</li>
									<li>送达地址: {$details->dst_addr}</li>
									<li>收货人姓名: {$details->dst_name}</li>
									<li>收货人电话: {$details->dst_phone}</li>
									<li>骑手编号: {$details->rid}</li>
									<li>骑手电话: {$details->rider_phone}</li>
								</ul>
							</li>
						{/foreach}
					{else}
						无正在配送中的订单
					{/if}
				</ul>
			</div>
			<div class="tab-pane fade" id="sent">
				<ul class="nav nav-pills">
					{if $sent_orders != NULL}
						{foreach $sent_orders as $details}
							<li class="nav-item">
								<ul>
									<li>送达时间: {$details->arrival_time}</li>
									<li>下单时间: {$details->comfirm_time}</li>
									<li>商家名: {$details->src_name}</li>
									<li>商家地址: {$details->src_addr}</li>
									<li>商家电话: {$details->src_phone}</li>
									<li>送达地址: {$details->dst_addr}</li>
									<li>收货人姓名: {$details->dst_name}</li>
									<li>收货人电话: {$details->dst_phone}</li>
									<li>骑手编号: {$details->rid}</li>
									<li>骑手电话: {$details->rider_phone}</li>
								</ul>
							</li>
						{/foreach}
					{else}
						无正在配送中的订单
					{/if}
				</ul>
			</div>
		</div>
	</div>
</div>

<script src="{$base_url.base_url}application/views/templates/js/jquery.min.js"></script>
<script src="{$base_url.base_url}application/views/templates/js/popper.min.js"></script>
<script src="{$base_url.base_url}application/views/templates/js/bootstrap.min.js"></script>
</body>

</html>
